package com.lei.yohojava_002.contract;

import com.lei.library_mvp_retrofit.http.bean.LoginBean;
import com.lei.library_mvp_retrofit.http.bean.RegisterBean;
import com.lei.library_mvp_retrofit.mvp.model.IModel;
import com.lei.library_mvp_retrofit.mvp.presenter.IPresenter;
import com.lei.library_mvp_retrofit.mvp.view.IView;

import io.reactivex.Observable;

/**
 * @ProjectName : YoHoJava_002
 * @Author : 雷金泷
 * @Time : 2021/1/8 18:37
 * @Description : 文件描述
 */
public interface YoHoContract {
    interface Model extends IModel {
        Observable login(String request);
        Observable register(String request);
    }

    interface LoginView extends IView {
        void getLogin(LoginBean loginBean);
    }

    interface RegisterView extends IView {
        void getReg(RegisterBean registerBean);
    }

    interface Presenter extends IPresenter {
        void login(String name);
        void register(String name);
    }
}
